#ifndef _NODE_H_
#define _NODE_H_
#include <d3dx9.h>
#include <fstream>
#include <string>
#include <vector>
#include <sstream>
#include "Object.h"

using namespace std;

class Node
{
public:
	int _id;
	int  _x1;
	int  _y1;
	int  _x2;
	int  _y2;

	
	Node * lt;
	Node * lb;
	Node * rt;
	Node * rb;

public:
	list<Object *> _list;
	
	Node(){}
	Node(int id, int x1, int y1, int x2, int y2);
	~Node();

	int getIDNode() {return _id;}
	int getX1() {return _x1;}
	int getY1() {return _y1;}
	int getX2() {return _x2;}
	int getY2() {return _y2;}
	void setLeftTop(Node *n) {lt = n;}
	void setRightTop(Node *n) {rt = n;}
	void setLeftBottom(Node *n) {lb = n;}
	void setRightBottom(Node *n) {rb = n;}
	Node* getLeftTop() {return lt;}
	Node* getRightTop() {return rt;}
	Node* getLeftBottom() {return lb;}
	Node* getRightBottom() {return rb;}


	void addGameObject(Object *_obj);

	list<Object*> getObjList() {return _list;}
};


#endif